package com.kaili.pojo.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cgm
 * @since 2018-05-08
 */
@Data
@TableName("hs_opt_ewb")
public class HsOptEwb implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 业务流水号
     */
    @TableField("operation_id")
    private String operationId;
    /**
     * 运单号
     */
    @TableId("ewb_no")
    private String ewbNo;
    /**
     * 开单时间
     */
    @TableField("ewb_date")
    private Date ewbDate;
    /**
     * 寄件人id
     */
    @TableField("send_customer_id")
    private Integer sendCustomerId;
    /**
     * 寄件人地址id
     */
    @TableField("send_customer_address_id")
    private Integer sendCustomerAddressId;
    /**
     * 收件人id
     */
    @TableField("receive_customer_id")
    private Integer receiveCustomerId;
    /**
     * 收件人地址id
     */
    @TableField("receive_customer_address_id")
    private Integer receiveCustomerAddressId;
    /**
     * 寄件网点id
     */
    @TableField("send_site_id")
    private Integer sendSiteId;
    /**
     * 目的网点id
     */
    @TableField("dispatch_site_id")
    private Integer dispatchSiteId;
    /**
     * 支付方式
     */
    @TableField("pay_mode_id")
    private Integer payModeId;

    /**
     * 结算方式
     */
    @TableField("settle_mode_id")
    private Integer settleModeId;
    /**
     * 提货方式id   派送  自提
     */
    @TableField("pick_goods_mode_id")
    private Integer pickGoodsModeId;
    /**
     * 备注
     */
    private String remark;
    /**
     * 代收货款
     */
    @TableField("cod_charge")
    private BigDecimal codCharge;
    /**
     * 保价金额
     */
    @TableField("insured_amount")
    private BigDecimal insuredAmount;
    /**
     * 派送费
     */
    @TableField("delivery_charge")
    private BigDecimal deliveryCharge;

    /**
     * 派送时代表派送费   自提时代表提货费
     */
    @TableField("send_charge")
    private BigDecimal sendCharge;

    /**
     * 总件数
     */
    @TableField("total_piece")
    private Integer totalPiece;
    /**
     * 总重量
     */
    @TableField("total_weight")
    private BigDecimal totalWeight;

    /**
     * 总结算重量
     */
    @TableField("total_calc_weight")
    private BigDecimal totalCalcWeight;
    /**
     * 总体积
     */
    @TableField("total_vol")
    private BigDecimal totalVol;

    /**
     * 总运费
     */
    @TableField("total_freight_charge")
    private BigDecimal totalFreightCharge;

    /**
     * 代收货款手续费
     */
    @TableField("receive_send_cod_charge")
    private BigDecimal receiveSendCodCharge;
    /**
     * 保费
     */
    @TableField("dob_insurance_fee")
    private BigDecimal dobInsuranceFee;
    /**
     * 总费用
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;
    /**
     * 目的地id
     */
    @TableField("city_id")
    private Integer cityId;
    /**
     * 是否签回单  0不是  1是
     */
    @TableField("is_rewb")
    private Integer isRewb;
    /**
     * 到付手续费
     */
    @TableField("re_arrive_charge")
    private BigDecimal reArriveCharge;
    /**
     * 到付款
     */
    @TableField("collect_charge")
    private BigDecimal collectCharge;
    /**
     * 创建时间
     */
    @TableField("created_time")
    private Date createdTime;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Integer createdBy;
    /**
     * 修改人
     */
    @TableField("modified_by")
    private Integer modifiedBy;
    /**
     * 修改时间
     */
    @TableField("modified_time")
    private Date modifiedTime;
    /**
     * 是否删除标识  1未删除  0 已删除
     */
    @TableField("rd_status")
    private Integer rdStatus;
    /**
     * 配载时间
     */
    @TableField("loading_time")
    private Date loadingTime;
    /**
     * 是否配载  0未配载  1已配载
     */
    @TableField("is_loading")
    private Integer isLoading;
    /**
     * 是否中转外包  0 不是  1是
     */
    @TableField("is_transfer")
    private Integer isTransfer;
    /**
     * 是否签收  0未签收  1已签收
     */
    @TableField("is_sign")
    private Integer isSign;

    /**
     * 业务费
     */
    @TableField("business_charge")
    private BigDecimal businessCharge;
    /**
     * 货源id
     */
    @TableField("supply_id")
    private Integer supplyId;

    /**
     * 是否为易碎品,0不是,1是
     */
    @TableField("is_fragile")
    private Integer isFragile;

    /**
     *来源,1标示web端,2标示PDA端"
     */
    @TableField("source_type")
    private String sourceType;

    @Override
    public String toString() {
        return "HsOptEwb{" +
                "operationId=" + operationId +
                ", ewbNo='" + ewbNo + '\'' +
                ", ewbDate=" + ewbDate +
                ", sendCustomerId=" + sendCustomerId +
                ", sendCustomerAddressId=" + sendCustomerAddressId +
                ", receiveCustomerId=" + receiveCustomerId +
                ", receiveCustomerAddressId=" + receiveCustomerAddressId +
                ", sendSiteId=" + sendSiteId +
                ", dispatchSiteId=" + dispatchSiteId +
                ", payModeId=" + payModeId +
                ", settleModeId=" + settleModeId +
                ", pickGoodsModeId=" + pickGoodsModeId +
                ", remark='" + remark + '\'' +
                ", codCharge=" + codCharge +
                ", insuredAmount=" + insuredAmount +
                ", deliveryCharge=" + deliveryCharge +
                ", totalPiece=" + totalPiece +
                ", totalWeight=" + totalWeight +
                ", totalCalcWeight=" + totalCalcWeight +
                ", totalVol=" + totalVol +
                ", totalFreightCharge=" + totalFreightCharge +
                ", receiveSendCodCharge=" + receiveSendCodCharge +
                ", dobInsuranceFee=" + dobInsuranceFee +
                ", totalAmount=" + totalAmount +
                ", cityId=" + cityId +
                ", isRewb=" + isRewb +
                ", reArriveCharge=" + reArriveCharge +
                ", collectCharge=" + collectCharge +
                ", createdTime=" + createdTime +
                ", createdBy=" + createdBy +
                ", modifiedBy=" + modifiedBy +
                ", modifiedTime=" + modifiedTime +
                ", rdStatus=" + rdStatus +
                ", loadingTime=" + loadingTime +
                ", isLoading=" + isLoading +
                ", isTransfer=" + isTransfer +
                ", isSign=" + isSign +
                '}';
    }
}
